docs, xen/arm: Introduce static heap memory
authorHenry Wang <Henry.Wang@arm.com>
Thu, 8 Sep 2022 11:09:08 +0000 (11:09 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 8 Sep 2022 11:27:15 +0000 (12:27 +0100)
commit4596329291f5cff9c28d269d21aac17ef993e9fb
treec7fd1abcaf89de39954a706d00b181672d3e0221
parentd0d81052b4e7493acf8c8dc18fe1911c4ee1d2ac
docs, xen/arm: Introduce static heap memory

This commit introduces the static heap memory, which is parts of RAM
reserved in the beginning of the boot time for heap.

Firstly, since a new type of memory bank is needed for marking the
memory bank solely as the heap, this commit defines `enum membank_type`
and use this enum in function device_tree_get_meminfo(). Changes of
code are done accordingly following the introduction of this enum.

Also, this commit introduces the logic to parse the static heap
configuration in device tree. If the memory bank is reserved as heap
through `xen,static-heap` property in device tree `chosen` node, the
memory will be marked as static heap type.

A documentation section is added, describing the definition of static
heap memory and the method of enabling the static heap memory through
device tree at boot time.

Signed-off-by: Henry Wang <Henry.Wang@arm.com>
Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
SUPPORT.md
docs/misc/arm/device-tree/booting.txt
xen/arch/arm/bootfdt.c
xen/arch/arm/domain_build.c
xen/arch/arm/include/asm/setup.h
xen/arch/arm/setup.c